package com.huawei.gamebox.plugin.gameservice.newsinfo.card;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.gamebox.plugin.gameservice.newsinfo.bean.NewsInfoBean;
import com.huawei.gamebox.service.common.cardkit.card.BaseGsCard;
import o.cgz;
import o.eqx;
import o.exp.d;

public class NewsInfoCard extends BaseGsCard {
    private TextView ˊ;
    private ImageView ˋ;
    private TextView ˎ;
    private TextView ˏ;

    public NewsInfoCard(Context context) {
        super(context);
    }

    public cgz ˏ(View view) {
        this.ˋ = (ImageView) view.findViewById(d.ʼᐝ);
        this.ˎ = (TextView) view.findViewById(d.ˎͺ);
        this.ˏ = (TextView) view.findViewById(d.ʾॱ);
        this.ˊ = (TextView) view.findViewById(d.ʽˋ);
        ʽ(view);
        return this;
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
        if (cardBean instanceof NewsInfoBean) {
            NewsInfoBean newsInfoBean = (NewsInfoBean) cardBean;
            eqx.ˏ(this.ˋ, newsInfoBean.ॱˌ(), "defaultPresetResourceKey");
            this.ˎ.setText(newsInfoBean.ˊ());
            this.ˏ.setText(newsInfoBean.ॱ());
            this.ˊ.setText(newsInfoBean.ʼ());
        }
    }
}
